package indvi.cfeng.persistencedemo.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author Cfeng
 * @date 2022/7/17
 */

@Entity
@Table(name = "ve_user")
@Data
@Accessors(chain = true)
public class VeUser {
    private static final long serialVersionUID = 1L;

    //主键
    @Id
    @Column(name = "id", nullable = false) //NOTNULL
    private Integer id;
    //姓名
    @Column(name = "user_name",nullable = false)
    private String userName;
    //身高
    @Column(name = "height")
    private BigDecimal height;
    //体重
    @Column(name = "weight")
    private BigDecimal weight;
    //BMI
    @Column(name = "BMI")
    private BigDecimal BMI;
    //创建时间
    @Column(name = "create_time")
    private LocalDateTime createTime;
}
